Reader Configuration using Config File

The reader supports to upload or download the reader configuration file. The reader configuration is typically managed in XML file.  

The list of configurations supported by a reader can be obtained from API rm.Profile.GetList. This method is supported only on FX7400. 

The upload of configuration file can be performed using rm.Profile.ExportToReader. The absolute file path of the source file must be specified. For example, “C:\Profiles” 

The method rm.Profile.ImportFromReader helps to download the reader configuration file from the reader to the client i.e. the application where runs. The absolute path of the destination is required to download the file. For example, “C:\Profiles”. The name of profile to be downloaded can be obtained using rm.Profile.GetList. Readers of XR-Series supports only one config file, i.e. “Config.xml”. 

This functionality is only supported in fixed reader not applicable to hand held readers. 

try

{

       // Download configuration file to c:\ drive

       rm.Profile.ImportFromReader("Config.xml", @"C:\");

      // Upload configuration but do not activate profile

       rm.Profile.ExportToReader(("Config.xml", @"C:\", false); 

}

catch (OperationFailureException exception)

{

    Console.WriteLine("Profile.ImportFromReader failed " + exception.Message);

}